<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
 <link rel="stylesheet" type="text/css" href=" <?php echo base_url();?>css/style_list_tecn.css"></link>

<script type="text/javascript" src=" <?php echo base_url();?>js/tabbed.js"></script>
<script type="text/javascript" src=" <?php echo base_url();?>js/script.js"></script>


</head>

<body onload="window.parent.scrollTo(0,0)"></br>

	<form>  
<input type="button" class="btnLogin" value="A&ntilde;adir visita" onClick=" window.location.href='<?php echo base_url();?>index.php/visitas/index/<?= $idObra?>'; "/></br></br>	   
</form>  </br>
 
<section id="tabla">

<table class="sortable" id="sorter">
    <tr>
      <th><img id= "sortable" src="<?php echo base_url();?>img/sort.gif" /> Fecha</th>
      <th><img id= "sortable" src="<?php echo base_url();?>img/sort.gif" /> Nombre visita</th>
      <th><img id= "sortable" src="<?php echo base_url();?>img/sort.gif" /> T&eacute;cnico </th>
      <th>Num. Def. Nuevas </th>
      <th>Num. Def. Abiertas</th>
      
      <th>Parte visita</th>
      </tr>
<?php 
if($results!=null){
  foreach($results as $dato):
  $id=$dato['idVisita'];
 ?>
	
<tr>
<td><?=$dato['fecha'] ?></td>

   <td><?= anchor('visitas_modi/modificar/'.$id.'/0', $dato['nombreVisita'] ); ?></td>
    <td><?=$dato ['nombre']?></td>
    <td><?=$dato ['contTot']?></td>
    <td><?=$dato ['contA']?></td>
    
   <td><?= anchor('finparte/genera_pdf/'.$id.'', 'Ver','target="_blank"'); ?>
   / <?= anchor('pre_correo/index/'.$id.'', 'Enviar'); ?></td>
  </tr> 
  
  
 <?php endforeach; }?>
  
 
	 
	</table>
</section></br> 
	 
	 	<script type="text/javascript">
var sorter=new table.sorter("sorter");
sorter.init("sorter",1);
</script>   

</body>
</html>

